﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008B7 RID: 2231
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GroupStatus : IMessage<GroupStatus>, IMessage, IEquatable<GroupStatus>, IDeepCloneable<GroupStatus>, IBufferMessage
	{
		// Token: 0x17001C12 RID: 7186
		// (get) Token: 0x060063B9 RID: 25529 RVA: 0x001089A7 File Offset: 0x00106BA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GroupStatus> Parser
		{
			get
			{
				return GroupStatus._parser;
			}
		}

		// Token: 0x17001C13 RID: 7187
		// (get) Token: 0x060063BA RID: 25530 RVA: 0x001089AE File Offset: 0x00106BAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GroupStatusReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C14 RID: 7188
		// (get) Token: 0x060063BB RID: 25531 RVA: 0x001089C0 File Offset: 0x00106BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GroupStatus.Descriptor;
			}
		}

		// Token: 0x060063BC RID: 25532 RVA: 0x001089C7 File Offset: 0x00106BC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupStatus()
		{
		}

		// Token: 0x060063BD RID: 25533 RVA: 0x001089CF File Offset: 0x00106BCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupStatus(GroupStatus other) : this()
		{
			this.groupStatus_ = other.groupStatus_;
			this.refreshTime_ = other.refreshTime_;
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060063BE RID: 25534 RVA: 0x00108A0C File Offset: 0x00106C0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupStatus Clone()
		{
			return new GroupStatus(this);
		}

		// Token: 0x17001C15 RID: 7189
		// (get) Token: 0x060063BF RID: 25535 RVA: 0x00108A14 File Offset: 0x00106C14
		// (set) Token: 0x060063C0 RID: 25536 RVA: 0x00108A1C File Offset: 0x00106C1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MessageGroupStatus GroupStatus_
		{
			get
			{
				return this.groupStatus_;
			}
			set
			{
				this.groupStatus_ = value;
			}
		}

		// Token: 0x17001C16 RID: 7190
		// (get) Token: 0x060063C1 RID: 25537 RVA: 0x00108A25 File Offset: 0x00106C25
		// (set) Token: 0x060063C2 RID: 25538 RVA: 0x00108A2D File Offset: 0x00106C2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long RefreshTime
		{
			get
			{
				return this.refreshTime_;
			}
			set
			{
				this.refreshTime_ = value;
			}
		}

		// Token: 0x17001C17 RID: 7191
		// (get) Token: 0x060063C3 RID: 25539 RVA: 0x00108A36 File Offset: 0x00106C36
		// (set) Token: 0x060063C4 RID: 25540 RVA: 0x00108A3E File Offset: 0x00106C3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x060063C5 RID: 25541 RVA: 0x00108A47 File Offset: 0x00106C47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GroupStatus);
		}

		// Token: 0x060063C6 RID: 25542 RVA: 0x00108A58 File Offset: 0x00106C58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GroupStatus other)
		{
			return other != null && (other == this || (this.GroupStatus_ == other.GroupStatus_ && this.RefreshTime == other.RefreshTime && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060063C7 RID: 25543 RVA: 0x00108AB4 File Offset: 0x00106CB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GroupStatus_ != MessageGroupStatus.MessageGroupNone)
			{
				num ^= this.GroupStatus_.GetHashCode();
			}
			if (this.RefreshTime != 0L)
			{
				num ^= this.RefreshTime.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060063C8 RID: 25544 RVA: 0x00108B2B File Offset: 0x00106D2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060063C9 RID: 25545 RVA: 0x00108B33 File Offset: 0x00106D33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060063CA RID: 25546 RVA: 0x00108B3C File Offset: 0x00106D3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RefreshTime != 0L)
			{
				output.WriteRawTag(24);
				output.WriteInt64(this.RefreshTime);
			}
			if (this.GroupStatus_ != MessageGroupStatus.MessageGroupNone)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.GroupStatus_);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060063CB RID: 25547 RVA: 0x00108BB4 File Offset: 0x00106DB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GroupStatus_ != MessageGroupStatus.MessageGroupNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.GroupStatus_);
			}
			if (this.RefreshTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.RefreshTime);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060063CC RID: 25548 RVA: 0x00108C24 File Offset: 0x00106E24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GroupStatus other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GroupStatus_ != MessageGroupStatus.MessageGroupNone)
			{
				this.GroupStatus_ = other.GroupStatus_;
			}
			if (other.RefreshTime != 0L)
			{
				this.RefreshTime = other.RefreshTime;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060063CD RID: 25549 RVA: 0x00108C88 File Offset: 0x00106E88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060063CE RID: 25550 RVA: 0x00108C94 File Offset: 0x00106E94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 40U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.GroupId = input.ReadUInt32();
						}
					}
					else
					{
						this.GroupStatus_ = (MessageGroupStatus)input.ReadEnum();
					}
				}
				else
				{
					this.RefreshTime = input.ReadInt64();
				}
			}
		}

		// Token: 0x04002615 RID: 9749
		private static readonly MessageParser<GroupStatus> _parser = new MessageParser<GroupStatus>(() => new GroupStatus());

		// Token: 0x04002616 RID: 9750
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002617 RID: 9751
		public const int GroupStatus_FieldNumber = 5;

		// Token: 0x04002618 RID: 9752
		private MessageGroupStatus groupStatus_;

		// Token: 0x04002619 RID: 9753
		public const int RefreshTimeFieldNumber = 3;

		// Token: 0x0400261A RID: 9754
		private long refreshTime_;

		// Token: 0x0400261B RID: 9755
		public const int GroupIdFieldNumber = 13;

		// Token: 0x0400261C RID: 9756
		private uint groupId_;
	}
}
